Package pl.wendigo.chrome.api.performancetimeline

Contains DevTools Protocol PerformanceTimeline domain implementation accessible via PerformanceTimelineDomain class.

Types

EnableRequest
Link copied to clipboard
data class EnableRequest(eventTypes: List<String>)
Represents request frame that can be used with PerformanceTimeline#enable operation call.
LargestContentfulPaint
Link copied to clipboard
data class LargestContentfulPaint(renderTime: TimeSinceEpoch, loadTime: TimeSinceEpoch, size: Double, elementId: String?, url: String?, nodeId: BackendNodeId?)
See https://github.com/WICG/LargestContentfulPaint and largest_contentful_paint.
LayoutShift
Link copied to clipboard
data class LayoutShift(value: Double, hadRecentInput: Boolean, lastInputTime: TimeSinceEpoch, sources: List<LayoutShiftAttribution>)
See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.
LayoutShiftAttribution
Link copied to clipboard
data class LayoutShiftAttribution(previousRect: Rect, currentRect: Rect, nodeId: BackendNodeId?)
PerformanceTimelineDomain
Link copied to clipboard
class PerformanceTimelineDomain : Domain
Reporting of performance timeline events, as specified in https://w3c.github.io/performance-timeline/#dom-performanceobserver.
TimelineEvent
Link copied to clipboard
data class TimelineEvent(frameId: FrameId, type: String, name: String, time: TimeSinceEpoch, duration: Double?, lcpDetails: LargestContentfulPaint?, layoutShiftDetails: LayoutShift?)
TimelineEventAddedEvent
Link copied to clipboard
data class TimelineEventAddedEvent(event: TimelineEvent) : Event
Sent when a performance timeline event is added.